package com.xmc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 谢孟呈
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    //主键id
    private Integer id;

    //用户名
    private String username;

    //密码
    private String password;

    //专业
    private String major;

    //学院
    private String department;

    //班级
    private String studentclass;

    //编号
    private String code;

    //性别
    private Integer gender;

    //电话
    private Long phone;

    //邮箱
    private String email;

    //生日
    private Date birthday;

    //头像
    private String imgurl;

    //类型  0管理员 1学生  2老师
    private Integer role;


    private Date createtime;

    private Date updatetime;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", major='" + major + '\'' +
                ", department='" + department + '\'' +
                ", studentclass='" + studentclass + '\'' +
                ", code=" + code +
                ", gender=" + gender +
                ", phone=" + phone +
                ", email='" + email + '\'' +
                ", birthday=" + birthday +
                ", imgurl='" + imgurl + '\'' +
                ", role=" + role +
                '}';
    }
}
